package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.News;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {
    int deleteByPrimaryKey(String id);

    int insert(News record);

    int insertSelective(News record);

    News selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKey(News record);

    // 按消息类型 获取不同消息列表
    List<News> selectAllByNewsTypes(@Param("userId")String userId, @Param("types")String types);
}